home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet Surfer 2.0
/
Internet Surfer 2.0 (Wayzata Technology) (1996).iso
/
pc
/
text
/
mac
/
faqs.437
< prev
next >
Wrap
Text File
|
1996-02-12
|
28KB
|
732 lines
Frequently Asked Questions (FAQS);faqs.437
COMPRESSION/DECOMPRESSION TOOLS:
cjpeg/djpeg (See description under "COMPRESSION/DECOMPRESSION
TOOLS" in the "PORTABLE UTILITIES" section above)
Atari-specific executables are available from your friendly neighborhood
ATARI-ARCHIVE:graphics/JPEGV3.lzh, or from ftp.tu-clausthal.de
(139.174.1.3) in /pub/atari/graphics/convert/jpegv3.lzh
CONVERSION TOOLS:
dmjgif Converts GIFs to Spectrums. Excellent - many options.
Slow (unless you register!) but effective. [Shareware]
ATARI-ARCHIVE: graphics/dmjgif3.lzh.
GIFSpec Converts from GIF to Spectrum format.
ATARI-ARCHIVE: graphics/gifspc.arc.
PBMPlus tool kit (See description under "CONVERSION TOOLS" in the
"PORTABLE UTILITIES" section above)
Atari-specific executables are available from your friendly neighborhood
ATARI-ARCHIVE: printing/pbm/pbm-readme (The file that explains it all)
printing/pbm/pbm-man.zoo (man pages)
printing/pbm/pbm-bin.zoo (Portable bitmap binaries)
printing/pbm/ppm-bin.zoo (Portable pixel map binaries)
printing/pbm/pgm-bin.zoo (Portable grey map binaries)
printing/pbm/pnm-bin.zoo (Portable any map binaries)
SpecDec Converts from Spectrum to Degas format.
ATARI-ARCHIVE: misc/specdeg.lzh.
PICTURE VIEWERS:
giffer Monochrome GIF viewer (4 dithering options).
ATARI-ARCHIVE: graphics/giffer.arc.
gifshw2 Color GIF single or "slide-show" viewer.
ATARI-ARCHIVE: graphics/gifshw2.arc.
mgif Monochrome GIF viewer.
ATARI-ARCHIVE: graphics/mgif37b.arc.
quickgif GIF "slide-show" viewer. Very fast and good results.
ATARI-ARCHIVE: graphics/quickgif.lzh.
SPShow Spectrum file viewer.
ATARI-ARCHIVE: graphics/specshow.arc
SPSlide Spectrum file "slide-show" viewer.
ATARI-ARCHIVE: graphics/spslidex.arc
viewgf Image viewer (many formats, including GIFs) - good.
ATARI-ARCHIVE: graphics/viewgf12.lzh.
Consult the comp.binaries.atari.st, comp.sources.atari.st or comp.sys.atari.st
news groups for Atari-specific information.
VIII. VAX/VMS UTILITIES
CONVERSION TOOLS:
PBMPlus tool kit (See description under "CONVERSION TOOLS" in the
"PORTABLE UTILITIES" section above)
VMS-specific support of the PBMPlus tool kit is provided by David
Jones (jones@kcgl1.eng.ohio-state.edu). The current patch version
is 1.01, and is available via anonymous FTP from TGV.COM, in directory
[.mahan], file PBMPLUS.SHAR.
PICTURE VIEWERS:
xv X-windows viewer supporting multiple formats,
including JPEG. Also writes many formats, making
it viable as a format conversion tool as well.
VMS-specific patches to allow building under ULTRIX or VMS have been
posted to the vmsnet.sources newsgroup and are available via anonymous
FTP on acfcluster.nyu.edu in directory [.VMS]. The VMS executables
including the patches are also available from black.cerritos.edu in
the BACKUP save-set [ANONYMOUS.VMSNET]XV*.BCK_Z (PostScript docs are in
file XV*.PS_Z) - also get [ANONYMOUS]LZDCMP.EXE to decompress. A
ready-to-use XV.EXE is also available from bilbo.imsd.rwth-aachen.de
(134.130.12.5).
Consult the comp.sys.dec* news groups for Digital-specific information.
IX. NeXT PROCEDURES/UTILITIES
For viewing on NeXT computers, the easiest way is to use NewsGrazer
and ImageViewer (both PD and available at sonata.cc.purdue.edu.)
Step 1: If the parts of the .gif are not in are the correct order,
control-drag them until they are.
Step 2: Select all the parts (in a group holding down the shift key).
Step 3: Click UUDECODE in the Tools menu.
Step 4: Double click on the GIF icon in the document well.
CONVERSION TOOLS:
PBMPlus tool kit (See description under "CONVERSION TOOLS" in the
"PORTABLE UTILITIES" section above).
NeXT binaries of the PBMPlus tool kit are available from
sonata.cc.purdue.edu in /pub/next/2.0-release/binaries.
Consult the comp.sys.next* news groups for NeXT-specific information.
X. UNIX/XWINDOWS PROCEDURES/UTILITIES
There is an "unofficial" archive of a lot of UNIX utilities at uranie.inria.fr,
maintained by Nathan Maman (maman@uranie.inria.fr). For purposes of this FAQ,
this site will be identified by the notation:
URANIE:<filename>
...which means that <filename> is available on uranie.inria.fr in directory
/pub/images/scripts. There are utilities on this site that are not mentioned
in this FAQ, but are definitely worth checking out...
Also, the best place to look for any sort of X utility is on EXPORT. There
are all sorts of X applications archived there, and should probably be your
first resort as to where to find any given X utility.
SYSTEM-SPECIFIC PROCEDURES:
* To concatenate multi-part picture files together and decode, execute:
cat part1 part2 part3 ... partN | uudecode
* To encode a file for posting, (assuming the file is named fyle - encoded
output will be in fyle.uu):
uuencode fyle fyle > fyle.uu
* To split a uuencoded file into multiple parts, use the "split" utility
(assuming the file containing the uuencoded data is fyle.uu - split
output will be in files fyle_<two-char-code>, where <two-char-code> is
"aa", "ab", "ac", etc.):
split -1000 fyle.uu fyle_
* Of course, it's possible to combine the encoding and splitting steps
into one operation using pipes (same example as above):
uuencode fyle fyle | split -1000 - fyle_
* Sometimes, files get posted with Mac "header" information in it. To get
rid of this extraneous information (assuming the Mac file is named
"macfile", the output file will be named "newfile"):
dd if=macfile of=newfile bs=128 skip=1
DECODERS/ENCODERS:
aub "Smart automatic decoder" by Mark Stantz (written in
perl). aub connects to an NNTP-based news server or to
raw spooled news files and scans for new pieces of
split, encoded binaries that have recently been
received. Binaries are expected to contain subject
lines conformant with de-facto UseNet standards; aub
may not be able to identify pieces of binaries which are
not named according to accepted conventional practice. If new binaries are found, aub retrieves, organizes and
decodes them, leaving the decoded files in a
configurable location. aub also allows for conditional
decoding and postprocessing of decoded binaries. Highly
recommended by me (deej) as a time-saver - I run it from
cron nightly!
Available via anonymous FTP on liasun3.epfl.ch (128.178.36.30) as
/pub/util/aub-1.0, or at ftp.cc.gatech.edu (130.207.119.241) as
/pub/unix/aub.tar.Z, at URANIE:aub-1.0.shar.Z, the "official" archive
at sgigate.sgi.com (192.82.208.1) in pub/aub/aub.2.0.5.shar, or from
ftp.rahul.net (192.160.13.1) in /pub/bryanw/unix. Also posted to
alt.sources.
comb Automatic decoder by Stephen James Kutnar.
Available via anonymous FTP from URANIE: comb.news.Z.
dlhunter Automated news binary extraction PERL script by
William J Middleton (middle@cse.uta.edu).
Available via anonymous FTP from URANIE:dlhunter.*.
mcvert Decodes Macintosh BinHex files.
Available via anonymous FTP from sumex-aim.stanford.edu (36.44.0.6) in
directory /info-mac/unix, or from
WUARCHIVE:/mirrors/info-mac/unix/mcvert-*.tar.Z.
myuud Intelligent uudecode by Nathan Maman
(maman@uranie.inria.fr).
Available via anonymous FTP from URANIE:myuud.c.
sift2 Automatic graphic file extractor/decoder by Tom Yager.
Available via anonymous FTP from URANIE:sift2.*.
sortuud Combines multi-part images - by Nathan Maman
(maman@uranie.inria.fr).
Available via anonymous FTP from URANIE:sortuud (URANIE:douud will use
sortuud in a more automated manner).
splituue Splits images and post them - by Nathan Maman
(maman@uranie.inria.fr).
Available via anonymous FTP from URANIE:splituue.
undo Undo an archive from the net - by Tim Steele.
Available via anonymous FTP from URANIE:undo-*.
unpost Decodes multi-part or multi-images from a single file.
Available via anonymous FTP from ftp.rahul.net (192.160.13.1) in
/pub/bryanw/unix.
uudecode/uuencode (normally UNIX standard)
Available via anonymous FTP from BONGO:uutools/uudecode.c,uuencode.txt.
uuxfer "Smart decoder/encoder" written by Dave Read.
Available via anonymous FTP from BONGO:uutools/uuxfer*.
uucat "Smart decoder", will concatenate the files you
specify, removing the headers and trailers almost
flawlessly. Usage:
uucat file1 .. fileN | uudecode
Available via anonymous FTP from BONGO:uutools/uucat.c.
uuconvert "Smart decoder" written by Jeff Wiegley
(wiegley@girtab.usc.edu). Incorporates uudecode
into uucat so that running uuconvert gets the job
done in one fell swoop. Also allows you to store
all the parts to a picture or multiple pictures in
ONE file (in order) and run uuconvert on that one file.
EMPHATICALLY recommended by Steve Quinn, who adds a
tip for interested people, "If you use UUCONVERT,
here's a really good downloading strategy I've evolved
with rn:
1) Run the list of subjects with '='.
2) Choose a picture and type 'id#1,id#2,...id#N:s
filename' to save all the parts in one file (where
id is the article number, and #N in the part of the
picture). You can also use id#1-id#N if they're
posted in order.
3) Do this with many files (in separate file names).
4) When I get out of rn I do a convert *.gf' (where gf
is just the extension I use when saving UUENCODED
GIF files), and all my files are decoded and ready
to go. (Well, most of the time it gets them all
on a wildcard, but it's been known to miss others
sometimes. Double check before you destroy your
UUENCODED copies.)
If I find a whole string of pix I want, and all the
parts are in order, I do a id#1-id#N through the whole
set of them and save them all to one file."
Available via anonymous FTP from BONGO:uutools/uuconvert.c.
viewer Allows you to view or archive pictures directly from
NNTP with no user intervention whatsoever. It even
scans the article headers to determine which pieces go
together, and in what order. It will optionally open
an X window to display the pictures. So once you've
installed it, you just type "viewer", and sit back.
Available via anonymous ftp from cs.utk.edu in ~ftp/pub/viewer*.
xmitBin Binary file poster/mailer (includes picture stats and
anonymous posting capabilities) by Jim Howard
(deej@cadence.com). Latest version is 1.8.
Available via anonymous FTP from URANIE:xmitBin.tar.Z, or from
ftp.rahul.net (192.160.13.1) in /pub/bryanw/unix.
Several people have also written scripts in AWK, SED, or PERL which will
strip headers and trailers, concatenate the results and pipe them through
UUDECODE. See section XI. (Appendix) if you want to run one of these.
COMPRESSION/DECOMPRESSION TOOLS:
compress/uncompress (normally UNIX standard)
unzip Uncompresses MS-DOS ZIP files.
Available via anonymous FTP from SIMTEL:<unix-c.file-mgmt>unzip*.tar-z,
and from WUARCHIVE:/mirrors/misc/unix/unzip*.tar-z, or from
GARBO:/unix/arcers directory as unzip*.tar.Z (you'll have to decompress
these with the UNIX compress utility). Also supposedly available from
WUARCHIVE:/mirrors2/ka9q/util/unzip.tar.Z.
lha Uncompresses LZH (LHarc) files.
Available via anonymous FTP from akiu.gw.tohoku.ac.jp in directory
/pub/unix/lha as file lha-*.tar.Z, from lysator.liu.se in the
/pub/amiga/LhA directory, and from sun.soe.clarkson.edu in /pub/src.
CONVERSION TOOLS:
dltogl Converts DL files to GL files - written by
phillips@cs.ubc.ca. (Usage note from Neil Nelson -
nkn@solbourne.com): There have been a few comments of
late concerning the use of dltogl and xgrasp. It *is*
possible to make the two coexist. dltogl can be used
one of two ways:
1) dltogl file.dl file.gl
2) dltogl file.dl
The first method produces a gl file which will cause
xgrasp to drop a core (although xviewgl has no trouble
showing the resulting gl file). The second method
will decode file.dl, leaving the constituent parts in
the current directory. One of the files will be called dl.txt. Simply rename this to file.txt, and then run
glib -u file.gl file.txt <all of the .clp and .pic
files produced by dltogl> to build the corresponding
gl file. I don't know why renaming the .txt file
makes xgrasp happy, but it does. See the shell script
"dltogl2" in the Appendix to automate this process.
Available via anonymous FTP on reseq.regent.e-technik.tu-muenchen.de
in /informatik.public/news/alt.sources/1/dltogl.Z, on cs.ubc.ca in
/pub/local/src/dltogl.c, on nuri.inria.fr in /graphics/dltogl.c.Z, and
from ftp.rahul.net (192.160.13.1) in /pub/bryanw/dltogl.c.
fromGIF/toGIF Converts GIF to/from Silicon Graphics IRIS format.
Available via anonymous FTP from BONGO:iris/fromgif.c,togif.c.
GIFtoJPG Conversion utilities, including gif2jpg, giftest.c,
and rmbigger.c - by Andrew Scott Beals.
Available via anonymous FTP from URANIE:gif2jpg.shar.Z.
PICTURE VIEWERS:
GIF320 GIF viewer for DEC VT320 terminals written by "Doctor
Gonzo" (sboyle@maths.tcd.ie). Looking for volunteers
with VT420s to help with program enhancements!
Available via anonymous FTP from ftp.maths.tcd.ie in directory
/pub/sboyle as file gif320_*.tar.Z.
artshow SunView viewer by Alan Sparks
Available via anonymous FTP from BONGO:sunview/artshow/*.
ImageMagick Multiple format (24-bit) viewer.
Available via anonymous FTP from EXPORT:ImageMagick.tar.Z.
viewgif SunView GIF viewer
Available via anonymous FTP from BONGO:sunview/viewgif/*.
viewer (See reference in "DECODERS/ENCODERS")
xli X-windows viewer supporting multiple formats
including JPEG).
Available via anonymous FTP from EXPORT:xli*.
xloadimage X-windows viewer supporting multiple formats (also
provides "true" 24 bit viewing).
Available via anonymous FTP from BONGO:xwindows/xloadimage/*,
or from EXPORT:xloadimage.*.tar.Z.
xshowgif X-windows GIF viewer.
Available via anonymous FTP from BONGO:xwindows/xshowgif/*.
xv X-windows viewer supporting multiple formats,
including JPEG. Also writes many formats, making
it viable as a format conversion tool as well.
Available via anonymous FTP from BONGO:xwindows/xv/*, from
EXPORT:xv-*.tar.Z, from ftp.cis.upenn.edu (130.91.6.8) in the pub/xv
directory or from gatekeeper.dec.com (16.1.0.2) in the /.1/X11/contrib
directory, both as file xv-*.tar.Z. (Latest version 2.21)
"MOVIE" VIEWERS:
ImageMagick (See reference in "PICTURE VIEWERS" above). As well
as providing other utilities, it can also do animation!
UtahRaster Tools (See reference in "CONVERSION TOOLS" section of
"PORTABLE UTILITIES" above). Also includes facilities
to generate animations!
xanim X-windows multi-format movie viewer (DL, FLI, even GIF)
by Mark Podlipec (podlipec@dgxyris.webo.dg.com).
Available via anonymous FTP from ftp.rahul.net (192.160.13.1) in
/pub/bryanw/unix/xanim.tar.Z.
xdl X-windows DL viewer by Jonas Yngvesson
(jonas-y@isy.liu.se).
Available via anonymous FTP from ftp.rahul.net (192.160.13.1) in
/pub/bryanw/unix/xdl.c.
xgl X-windows GL viewer.
Available via anonymous FTP on aix370.rrz.uni-koeln.de in
/pub/usenet/comp.archives/graphics/pixutils, on cs.dal.ca in
/pub/comp.archives, on srawgw.sra.co.jp in the directory
/.a/sranha-bp/arch/arch/comp.archives/graphics/pixutils, and on
dutepp0.et.tudelft.nl in directory /Unix/X.
xflick X-windows FLI viewer.
Available via anonymous FTP from ftp.rahul.net (192.160.13.1) in
/pub/bryanw/unix/xflick.tar.Z, from nic.funet.fi (128.214.6.100) in
/pub/X11/contrib/xflick.tar.Z, from GARBO:/X11/graphics/xflick.tar.Z,
from ftp.uu.net (137.39.1.9) in /pub/window-sys/X/contrib/xflick.tar.Z,
or from EXPORT:xflick.tar.Z.
xgrasp X-windows GL viewer (color only).
Available via anonymous FTP from EXPORT:xgrasp*, and from ftp.rahul.net
(192.160.13.1) in /pub/bryanw/unix/xgrasp*.tar.Z.
XTango X-windows animation system.
Available via anonymous FTP from par.cc.gatech.edu as /pub/xtango.tar.Z,
or as xtangovararg.tar.Z for those on HP or DEC workstations. Both
represent the latest version (1.42).
xviewgl X-windows GL viewer.
Available via anonymous FTP from BONGO:xwindows/xviewgl/*, or from
EXPORT:xviewgl_v*.tar.Z.
Consult the comp.sources.unix, comp.sources.x, comp.sys.<sys_name> (where
<sys_name> is your system type - i.e. hp, mips, sun, etc.) news groups for
UNIX, X-windows and other system-specific information.
XI. APPENDICES: AWK, SED, AND PERL SCRIPTS
Below are the scripts mentioned in the previous section. I make no
assurances as to how well they work; I use one of the 'super' uudecodes
instead. Note that the SED script will not work unless people follow this
recent trend of putting 'BEGIN' and 'END' in the 'cut here' lines. The
AWK and PERL scripts will work on most files, but some uuencodes put out
non-standard data, in which case these scripts will bomb and you'll have
to do the work by hand.
-------------------------------------------------------------------------
AWK script:
#!/bin/sh
if [ X$1 != X ] ; then cat $* ; else cat <& 0 ; fi | \
awk '/begin [0-9]/ {ok = 1}
/^Message/ {ok = 0;next}
/^M/ && (length == 61 || length == 62) {ok = 1}
/[cC]ut [hH]ere/ {ok = 0;next}
/^END-----/ {ok = 0;next}
/^Path:/ {ok = 0;next}
/^$/ {ok = 0;next}
/^-/ {ok = 0;next}
/^_/ {ok = 0;next}
{if (ok) print}
/^end/ {ok = 0}' $* | \
(cd $HOME/tmp; uudecode)
--------------------------------------------------------------------------
SED idea from Alan Sparks (asparks@viewlogic.com):
cat $* | sed '/^END/, /^BEGIN/d' | uudecode
Recall that this won't work except on files with BEGIN and END as part
of the 'CUT HERE' lines...
-------------------------------------------------------------------------
PERL script from Dave Mack (csu@alembic.acs.com):
#! /usr/local/bin/perl
#
# Combine split uuencoded files into a single data stream with
# e-mail garbage removed and pipe into uudecode. The uuencoded
# files must be in the correct order on the command line - in
# particular the first file must contain the "begin" line and
# the last file must contain the "end" line.
#
# WARNING: this code relies on uuencode putting out all lines
# of the form "M[61 ASCII characters]\n" for every line of the
# file except the last few before the "end" line. If you come
# across a uuencoded file that doesn't do this, you'll need to
# modify the code to handle it.
#
# DISCLAIMER: You use this code at your own risk. Also, don't
# take this is as a sterling example of Perl programming. Corrections
# and improvements welcome. You may do whatever you like with this
# code as long as you leave in some reminder of who the original
# culprit^H^H^H^H^H^H^Hauthor was.
#
# Usage: uumerge filename [filename...]
# Requires Perl 3.0 - my copy is at patchlevel 18
#
# Dave Mack csu@alembic.ACS.COM
#
# TODO: modify to allow more than one collection of files on
# command line.
#
# KNOWN BUGS:
#
# If some bozo puts a line beginning with "M" in the body of one
# of the intermediate/last chunks, uumerge will assume that uuencoded
# part starts there.
#
# If the last chunk only contains the last two or three lines of
# the uuencoded file (the ones that don't start with "M"), uumerge
# will die.
#
# CHANGES
#
# PATCH 1:
# It appears that some versions of uudecode are too stupid to skip
# past the lines preceding the "begin" line, so feeding a one-part
# uuencoded file to uumerge will bomb.
#
if ($#ARGV < 0 ) {
print "Usage: uumerge filename [filename...]\n";
exit 1;
}
$| = 1;
# open a pipe into uudecode
open(DECO,"|uudecode") || die "Can't pipe into uudecode\n";
# if we only have one file, pump it straight into uudecode and die
if ( $#ARGV == 0 ) {
open(FIRST,"<$ARGV[0]") || die "Can't open $ARGV[0] for input\n";
while ( <FIRST> ) {
# skip past everything before the "begin" line
next unless /^begin [0-9]/;
last;
}
die "$ARGV[0] doesn't contain \"begin\"\n" if eof(FIRST);
print DECO $_; # the begin line
while ( <FIRST> ) {
print DECO $_ unless /^end/;
if ( /^end/ ) {
print DECO $_;
last;
}
die "$ARGV[0] doesn't contain \"end\"\n" if eof(FIRST);
}
# done with file
close(FIRST);
exit 0;
}
# process the first file - make sure we have a "begin" line
open(FIRST,"<$ARGV[0]") || die "Can't open $ARGV[0] for input\n";
while ( <FIRST> ) {
# skip past everything before the "begin" line
next unless /^begin [0-9]/;
last;
}
die "First file on command line doesn't contain \"begin\"\n" if eof(FIRST);
print DECO $_; # the begin line
# the remaining "real" uuencoded lines in this file should begin with "M"
while ( <FIRST> ) {
if ( /^M/ ) {
print DECO $_;
}
else {
last;
}
}
# done with the first file
close(FIRST);
# do all except the last file
$maxindex = $#ARGV;
$curr = 1;
while ( $curr < $maxindex ) {
open(CURR,"<$ARGV[$curr]") || die "Can't open $ARGV[$curr]\n";
# skip the header junk
while ( <CURR> ) {
next unless /^$/;
last;
}
# at the body of the message - start looking for /^M/
while ( <CURR> ) {
next unless /^M/;
last;
}
die "$ARGV[$curr] isn't a uuencoded file\n" if eof(CURR);
# OK, we're at the start of the good stuff (probably)
print DECO $_;
while ( <CURR> ) {
if (/^M/) {
print DECO $_;
}
else {
last;
}
}
# done with current file
close(CURR);
$curr++;
}
# time to do the last file in the set
$curr = $maxindex;
open(CURR,"<$ARGV[$curr]") || die "Can't open $ARGV[$curr]\n";
# skip the header junk
while ( <CURR> ) {
next unless /^$/;
last;
}
# at the body of the message - start looking for /^M/
while ( <CURR> ) {
next unless /^M/;
last;
}
# OK, we're at the start of the good stuff (probably)
print DECO $_;
while ( <CURR> ) {
print DECO $_ unless /^end/;
if ( /^end/ ) {
print DECO $_;
last;
}
die "Last file on command line doesn't contain \"end\"\n" if eof(CURR);
}
# done with final file
close(CURR);
# close the pipe to uudecode and exit
close(DECO);
exit(0);
-------------------------------------------------------------------------
Shar of a perl script from Randal Schwartz (merlyn@iwarp.intel.com):
#! /bin/sh
# This is a shell archive. Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file". To overwrite existing
# files, type "sh file -c". You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g.. If this archive is complete, you
# will see the following message at the end:
# "End of shell archive."
# Contents: uumerge
# Wrapped by merlyn@iwarpti on Sun Oct 6 22:22:36 1991
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'uumerge' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'uumerge'\"
else
echo shar: Extracting \"'uumerge'\" \(600 characters\)
sed "s/^X//" >'uumerge' <<'END_OF_FILE'
X#!/local/usr/bin/perl
X
X## Version 1.03 on 91/09/27
X## Written by Randal L. Schwartz, Stonehenge Consulting Services, Portland, OR
X## uudecodes the arguments (or stdin), ignoring non-uuencoded lines
X
Xwhile (<>) {
X last if ($mode,$file) = /^begin\s*(\d*)\s*(\S*)/;
X}
Xdie "missing begin" unless $_;
Xopen(OUT,"> $file") if $file ne "";
Xwhile (<>) {
X last if /^end/;
X s/[a-z]+$//; # handle stupid trailing lowercase letters
X next if /[a-z]/;
X next unless int((((ord() - 32) & 077) + 2) / 3) == int(length() / 4);
X print OUT unpack("u", $_);
X}
Xdie "missing end" unless $_;
Xchmod oct($mode), $file;
Xexit 0;
END_OF_FILE
if test 600 -ne `wc -c <'uumerge'`; then
echo shar: \"'uumerge'\" unpacked with wrong size!
fi
chmod +x 'uumerge'
# end of 'uumerge'
fi
echo shar: End of shell archive.
exit 0
-------------------------------------------------------------------------------
Yet another awk script - this one from Nasir Ahmed Noor
(umnoor@ccu.umanitoba.ca) updated from an earlier version:
#! /bin/sh
# A shell script to extract binary files from their uudecoded parts.
# WRITTEN BY NASIR AHMED NOOR (noor@muug.mb.ca)
#
# Usage:
# Store all uudecoded parts of a file (in right order) in a file and give
# that file as argument to this script. AN INPUT FILE CAN CONTAIN UUDECODED
# PARTS OF MORE THAN ONE FILE AND THEY ALL WILL BE EXTRACTED. You can
# provide multiple file names [wild cards also ok] on the command line.
#
infunc () {
while ( test $curfield -le $fields )
do
myrec=`echo $linenums|nawk '{print $mynum}' mynum=$curfield`
nawk '$0 ~ /^begin / && NR > rec {print $0}; $0 ~ /^M[^a-z]/ && NR > rec {print $0}; NR > rec {sl=lr; lr=pr; pr=$0}; $1 ~ /^end/ && NR > rec {print sl; print lr; print pr; exit}' rec=$myrec $binfile | uudecode
curfield=`expr $curfield + 1 `
done
}
for binfile in $*
do
linenums=`nawk '$0 ~ /^begin / {myrec = (NR - 1); print myrec}' $binfile`
fields=`echo $linenums|nawk '{print NF}'`
curfield=1
if ( test $fields -ge 1 )
then infunc
fi
done
exit
-------------------------------------------------------------------------------
"dltogl2" script from Neil Nelson (nkn@solbourne.com):
#!/bin/sh
# File name: dltogl2
# Usage: dltogl2 dl-filename
NAME=`basename $1 .dl`
dltogl $1
mv dl.txt $NAME.txt
glib -u $NAME.gl $NAME.txt *.pic *.clp
rm -f $NAME.txt *.clp *.pic
-------------------------------------------------------------------------------
XII. BONGO FILE LISTING
Here's the most recent 0filelist from bongo, showing all the archived
software there (all under the "gifstuff" directory).
0filelist ;this file... an annotated ``ls -R''
apple ;directory for Apple ][ series
amiga ;directory for Commodore Amiga
ftpsites ;list of pictures-related FTP sites
gifutils ;directory for miscellaneous GIF utilities
ibmpc ;directory for PC-Clones
iris ;directory for Silicon Graphics Iris conversion utilities
mac ;directory for Macintosh line
sunview ;directory for Sun series running SunView
uutools ;directory with source for current version of UUXFER
and other uudecode tools and info...
xwindows ;directory with source for X11R4
amiga:
GIFMachine.lzh ;LZH-compressed GIFMachine
gl1-1.lzh ;LZH-compressed GL viewer for Amiga
apple:
ii ;directory for Apple ][+/c/e
iigs ;directory for Apple ][GS
apple/ii:
iigif ;][Gif program for Apple []+/c/e
apple/iigs:
gif3200.shk ;GIF3200 and VIEW3200 shareware files (Shrinkit)
iffconv.shk ;shareware to convert AMIGA IFF files (Shrinkit)
gifutils:
giftest.c ;C source code for testing integrity of GIF files
giftops.c ;C source code for GIF to postscript converter
ibmpc:
cshw821b.zip ;CSHOW v 8.21b in ZIP format
grasp35.zip ;ZIP'ed GRASP viewer (GRASPRT v 3.5)
vpic34.zip ;ZIP'ed VPIC v 3.4 (*HIGHLY* recommended!)
iris:
fromgif.c ;C source to convert GIF files to IRIS format
togif.c ;C source to convert IRIS format to GIF
mac:
quick-gif.hqx ;QuickGif, in BinHex 4.0
visionlab.hqx ;VisionLab, also in BinHex 4.0
sunview:
artshow ;Directory for Alan Sparks' ARTSHOW viewer for SunView
viewgif ;Directory for ViewGif for SunView
sunview/artshow:
Makefile ;Makefile for ArtShow
README.artshow ;Installation notes for ArtShow
artshow.tar.Z ;ArtShow sources, tar'ed and compressed.
sunview/viewgif:
viewgif.shar.Z ;Compressed shar file for ViewGif
uutools:
uucat.c ;C source for uucat
uuconvert.c ;C source for uuconvert
uudecode.c ;standard Berkeley uudecode (source)
uuencode.txt ;description of uuencode 'standard'
README ;Notes for UUXFER
uuxfer20.c ;C source for UUXFER ver. 2.0
uuxfer20.doc ;Documentation & installation notes for UUXFER v 2.0
xwindows:
xloadimage ;Directory for Xloadimage
xshowgif ;Directory for xshowgif
xv ;Directory for xv
xviewgl ;Directory for xviewgl
xwindows/xloadimage:
README.1st ;Installation notes for xloadimage
xloadimage.3.01.tar.Z ;Compressed tar file for xloadimage 3.01